//
//  KFDViewModelTests.m
//  KFD
//
//  Created by JIRENTIANXIANG on 6/10/15.
//  Copyright (c) 2015 kfd. All rights reserved.
//

#import "KFDViewModelTests.h"
#import "KFDViewModel.h"
#import "KFDAsyncTestUtil.h"

@implementation KFDViewModelTests
{
    __block BOOL done;
    KFDViewModel* vm;
}

//-(void)testViewModel
//{
//    done=NO;
//    vm=[KFDViewModel new];
////    [vm iterateAllProperties];
//    [vm registerObserver:self];
//    vm.test=@"haha";
////    vm.test=@"hehe";
//    XCTAssert([KFDAsyncTestUtil waitFor:&done timeout:5],
//              @"Timed out waiting for response asynch method completion");
//}

-(void)observeValueForKeyPath:(NSString *)keyPath ofObject:(id)object change:(NSDictionary *)change context:(void *)context
{
    done=YES;
    XCTAssert(YES);
}

@end
